package ns.om.domain.base

import ns.gflex.domain.User;

class Activity {
	String name
	String code
	String content //使用'##'分隔两段文字，需求拆分时描述也拆分
	Integer attachNum = 0
	User creator
	User lastUser
	Date dateCreated
	Date lastUpdated
	
	static mapping = {
		creator fetch: 'join',lazy:false
		lastUser fetch: 'join',lazy:false
	}

	static constraints = {
		name maxSize:64
		code nullable:true
		content maxSize:1024,nullable:true
	}
	
	String toString(){
		"Activity: id-$id name-$name"
	}
}
